package edu.uoc.tdp.client.gestors;

import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import edu.uoc.tdp.comu.interficieRMI.InterficieRMI;
import java.net.MalformedURLException;

public class GestorRMI {
	
	public static InterficieRMI rmi;
	
	public static void Connecta() throws MalformedURLException, RemoteException, NotBoundException{
		rmi = (InterficieRMI)Naming.lookup("rmi://localhost/gestor");
	}
	
	public static void Desconnecta(){
		rmi = null;
	}
	
}
